package com.example.firstdemo.ui.screens.pages.addProblem.addProblem.selectProblem

import com.example.firstdemo.network.api.addProblem.data.ProblemDictData
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.asSharedFlow

object SelectProblemEvent {
    private val _problem = MutableSharedFlow<ProblemDictData>()
    val problem = _problem.asSharedFlow()

    suspend fun emit(problem: ProblemDictData) {
        _problem.emit(problem)
    }
}